package com.atguigu.yygh.order.service;

import com.atguigu.yygh.model.order.OrderInfo;
import com.atguigu.yygh.model.order.PaymentInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * @author 杨林
 * @create 2022-11-18 20:55 星期五
 * description:
 */
public interface PaymentService extends IService<PaymentInfo> {

    /**
     * 保存交易记录
     * @param orderInfo
     * @param paymentType  支付类型  1：微信支付  2：支付宝支付
     */
    void saveOrderInfo(OrderInfo orderInfo,Integer paymentType);

    /**
     * 获取支付记录
     * @param orderId
     * @param paymentType
     * @return
     */
    PaymentInfo getPaymentInfo(Long orderId,Integer paymentType);



    void paySuccess(String outTradeNo , Map<String, String> paramMap);
}
